The time we really care about current release information in appdata is
when preparing a release, not during regular builds.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1968>
--- /dev/null
+../../../../meson/check-version.py
\ No newline at end of file
args: ['validate', '--nonet', metainfo],
workdir: meson.current_build_dir()
)
-
- r = run_command(appstream_util, '--help')
- if (r.stdout().contains('validate-version'))
- test('Checking release entry for @0@'.format(meson.project_version()),
- appstream_util,
- args: ['validate-version', metainfo, meson.project_version()],
- workdir: meson.current_build_dir()
- )
- endif
endif
meson.add_install_script('build-aux/meson/postinstall.py')
+ if appstream_util.found()
+ meson.add_dist_script('build-aux/meson/check-version.py',
+ meson.project_version(),
+ '--type=metainfo',
+ 'data/metainfo/org.gnome.Extensions.metainfo.xml.in')
+ endif
+
summary_dirs = {
'prefix': get_option('prefix'),
'bindir': get_option('bindir'),